package cn.bearspark.happening.provider.dao.co;

import cn.bearspark.framework.redis.starter.buffer.hash.HotData;
import cn.bearspark.framework.redis.starter.buffer.hash.un.Cacheable;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 预约直播的缓存对象
 *
 * @author f
 */
@Data
public class BookLiveCO implements Cacheable {

    /**
     * 预约直播的 id
     */
    private Long bookLiveId;

    /**
     * 预约直播的标题
     */
    private String title;

    /**
     * 预约人数
     */
    @HotData
    private Long bookNum;

    /**
     * 撤销状态
     *
     * @see cn.bearspark.happening.enumeration.booklive.CanceledEnum
     */
    private Integer canceled;

    /**
     * 预约的直播时间
     */
    private LocalDateTime liveTime;

    @Override
    public Long id() {
        return bookLiveId;
    }

}
